<%@page import="com.mongodb.DBObject"%>
<%@page import="net.tanesha.recaptcha.ReCaptchaFactory"%>
<%@page import="net.tanesha.recaptcha.ReCaptcha"%>
<%
String[] listError = (String[]) request.getAttribute("listError");
String username = (String) request.getAttribute("username");
String email = (String) request.getAttribute("email");
String success = (String) request.getAttribute("success");
DBObject dbObject = (DBObject) request.getAttribute("dbObject");
%>

<jsp:include page="layout/header.jsp">
	<jsp:param name="title" value="Active acount" />
	<jsp:param name="description" value="" />
	<jsp:param name="keywords" value="" />
	<jsp:param name="page" value="home" />
</jsp:include>

        <div id="content">
        	<div id="content_inner">
            	<div id="maincontent">
                    <div id="userform" class="clearafter">
                        <div class="signupform">
                            <h2 class="title">Active <%=dbObject!=null?"successful":"false" %></h2>
                            
                            <div class="success">
                            <%
                            if(dbObject!=null)
                            {
                            %>
                                <p>Thanks for your signup. Now, you can login to use our service.</p>
                            <%
                            } else {
                            %>
                            	<p>Your active code is not correct. Please re-check the active code in your email.</p>
                            	<p>Or you can <a href="/contact">contact with us</a> to get the new code</p>
                            <%
                            }
                            %>
                            </div>
                        </div>
                        <div class="loginform">
                            <h2 class="title">Login</h2>
                            <form method="post" action="/login" name="loginform">
                                <p>
                                    <label>
                                        Username
                                        <br />
                                        <input class="input" type="text" name="username" />
                                    </label>                     
                                </p>
                                <p>
                                    <label>
                                        Password
                                        <br />
                                        <input class="input" type="password" name="password" />
                                    </label>
                                </p>
                                <p class="forgetmenot">
                                    <a href="/forgot-password">Lost your password?</a>
                                </p>
                                <p class="loginsubmit">
                                    <input type="submit" value="Login" />
                                </p>
                                <div class="clearbreak"></div>
                                
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>

<%@ include file='/layout/footer.jsp'%>